.class Lcn/sharesdk/onekeyshare/EditPage$1;
.super Ljava/lang/Thread;
.source "EditPage.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcn/sharesdk/onekeyshare/EditPage;->onCreate()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcn/sharesdk/onekeyshare/EditPage;


# direct methods
.method constructor <init>(Lcn/sharesdk/onekeyshare/EditPage;)V
    .registers 2
    .param p1, "this$0"    # Lcn/sharesdk/onekeyshare/EditPage;

    .prologue
    .line 113
    iput-object p1, p0, Lcn/sharesdk/onekeyshare/EditPage$1;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 9

    .prologue
    .line 115
    iget-object v4, p0, Lcn/sharesdk/onekeyshare/EditPage$1;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    iget-object v5, p0, Lcn/sharesdk/onekeyshare/EditPage$1;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    # getter for: Lcn/sharesdk/onekeyshare/EditPage;->activity:Landroid/app/Activity;
    invoke-static {v5}, Lcn/sharesdk/onekeyshare/EditPage;->access$100(Lcn/sharesdk/onekeyshare/EditPage;)Landroid/app/Activity;

    move-result-object v5

    invoke-static {v5}, Lcn/sharesdk/framework/ShareSDK;->getPlatformList(Landroid/content/Context;)[Lcn/sharesdk/framework/Platform;

    move-result-object v5

    # setter for: Lcn/sharesdk/onekeyshare/EditPage;->platformList:[Lcn/sharesdk/framework/Platform;
    invoke-static {v4, v5}, Lcn/sharesdk/onekeyshare/EditPage;->access$002(Lcn/sharesdk/onekeyshare/EditPage;[Lcn/sharesdk/framework/Platform;)[Lcn/sharesdk/framework/Platform;

    .line 116
    iget-object v4, p0, Lcn/sharesdk/onekeyshare/EditPage$1;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    # getter for: Lcn/sharesdk/onekeyshare/EditPage;->platformList:[Lcn/sharesdk/framework/Platform;
    invoke-static {v4}, Lcn/sharesdk/onekeyshare/EditPage;->access$000(Lcn/sharesdk/onekeyshare/EditPage;)[Lcn/sharesdk/framework/Platform;

    move-result-object v4

    if-nez v4, :cond_18

    .line 135
    :goto_17
    return-void

    .line 120
    :cond_18
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 121
    .local v1, "list":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcn/sharesdk/framework/Platform;>;"
    iget-object v4, p0, Lcn/sharesdk/onekeyshare/EditPage$1;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    # getter for: Lcn/sharesdk/onekeyshare/EditPage;->platformList:[Lcn/sharesdk/framework/Platform;
    invoke-static {v4}, Lcn/sharesdk/onekeyshare/EditPage;->access$000(Lcn/sharesdk/onekeyshare/EditPage;)[Lcn/sharesdk/framework/Platform;

    move-result-object v5

    array-length v6, v5

    const/4 v4, 0x0

    :goto_25
    if-ge v4, v6, :cond_44

    aget-object v3, v5, v4

    .line 122
    .local v3, "plat":Lcn/sharesdk/framework/Platform;
    invoke-virtual {v3}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v2

    .line 123
    .local v2, "name":Ljava/lang/String;
    instance-of v7, v3, Lcn/sharesdk/framework/CustomPlatform;

    if-nez v7, :cond_3d

    iget-object v7, p0, Lcn/sharesdk/onekeyshare/EditPage$1;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    .line 124
    # getter for: Lcn/sharesdk/onekeyshare/EditPage;->activity:Landroid/app/Activity;
    invoke-static {v7}, Lcn/sharesdk/onekeyshare/EditPage;->access$200(Lcn/sharesdk/onekeyshare/EditPage;)Landroid/app/Activity;

    move-result-object v7

    invoke-static {v7, v2}, Lcn/sharesdk/onekeyshare/ShareCore;->isUseClientToShare(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_40

    .line 121
    :cond_3d
    :goto_3d
    add-int/lit8 v4, v4, 0x1

    goto :goto_25

    .line 127
    :cond_40
    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_3d

    .line 129
    .end local v2    # "name":Ljava/lang/String;
    .end local v3    # "plat":Lcn/sharesdk/framework/Platform;
    :cond_44
    iget-object v4, p0, Lcn/sharesdk/onekeyshare/EditPage$1;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v5

    new-array v5, v5, [Lcn/sharesdk/framework/Platform;

    # setter for: Lcn/sharesdk/onekeyshare/EditPage;->platformList:[Lcn/sharesdk/framework/Platform;
    invoke-static {v4, v5}, Lcn/sharesdk/onekeyshare/EditPage;->access$002(Lcn/sharesdk/onekeyshare/EditPage;[Lcn/sharesdk/framework/Platform;)[Lcn/sharesdk/framework/Platform;

    .line 130
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_50
    iget-object v4, p0, Lcn/sharesdk/onekeyshare/EditPage$1;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    # getter for: Lcn/sharesdk/onekeyshare/EditPage;->platformList:[Lcn/sharesdk/framework/Platform;
    invoke-static {v4}, Lcn/sharesdk/onekeyshare/EditPage;->access$000(Lcn/sharesdk/onekeyshare/EditPage;)[Lcn/sharesdk/framework/Platform;

    move-result-object v4

    array-length v4, v4

    if-ge v0, v4, :cond_6a

    .line 131
    iget-object v4, p0, Lcn/sharesdk/onekeyshare/EditPage$1;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    # getter for: Lcn/sharesdk/onekeyshare/EditPage;->platformList:[Lcn/sharesdk/framework/Platform;
    invoke-static {v4}, Lcn/sharesdk/onekeyshare/EditPage;->access$000(Lcn/sharesdk/onekeyshare/EditPage;)[Lcn/sharesdk/framework/Platform;

    move-result-object v5

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcn/sharesdk/framework/Platform;

    aput-object v4, v5, v0

    .line 130
    add-int/lit8 v0, v0, 0x1

    goto :goto_50

    .line 134
    :cond_6a
    const/4 v4, 0x1

    iget-object v5, p0, Lcn/sharesdk/onekeyshare/EditPage$1;->this$0:Lcn/sharesdk/onekeyshare/EditPage;

    invoke-static {v4, v5}, Lcn/sharesdk/framework/utils/UIHandler;->sendEmptyMessage(ILandroid/os/Handler$Callback;)Z

    goto :goto_17
.end method
